﻿@model Cxuu.Models.EditArticleMark
@{
    ViewData["Title"] = await SystemConfig.GetByFieldNameAsync("SiteName");
    ViewData["Marks"] = await SystemConfig.GetByFieldNameAsync("Marks");
}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>@ViewData["Title"]</title>
    <link rel="stylesheet" href="~/lib/layui/css/layui.css">
    <link rel="stylesheet" href="~/admin/css/main.css">
    <style>
        html { zoom: 100%; width: 95%; margin: 5px auto; height: auto; }
        .cxuu-mark-abho { color: black !important; font-size: 14px; }
            .cxuu-mark-abho li { line-height: 30px; }
    </style>
</head>
<body>
    <div class="layui-fluid" style="margin-bottom:50px;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="cxuu-mark-abho">
                    <ul>
                        <li style="text-align:center;">
                            <div style="color:darkblue !important;font-weight:bold;font-size:18px;" id="title"></div>    <hr>
                        </li>
                        <li style="color:gray;text-align:center;">
                            填报人：<span id="nickname"></span>
                            填报时间：<span id="InsertTime"></span>
                        </li>
                        <li style="color:gray;text-align:center;">
                            由 <span id="MarkName"></span> 于
                            <span id="GreatTime"></span> 标记为：<span class="layui-badge layui-bg-blue" id="AdoptAppraise"></span>
                        </li>
                        <li style="color:gray;">
                            <fieldset class="layui-elem-field">
                                <legend>备注</legend>
                                <div class="layui-field-box" id="Remark">
                                  
                                </div>
                            </fieldset>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <script src="~/lib/jquery.min.js?v=1.12.4"></script>
    <script src="~/lib/layui/layui.js"></script>
    <script src="~/lib/cxuu-main.js"></script>
    <script>
        layui.define(function () {
            var $ = layui.jquery, element = layui.element;

            var index = parent.layer.getFrameIndex(window.name);

            let aid = getUrlParam('aid');
            $.getJSON("/Admin/ArticleMark/GetArticleMark", { "id": aid }, function (res) {
                if (res.status == 1) {
                    var data = res.data;
                    if (data != null) {
                        $('#Remark').html(data.remark);
                        $('#title').html(data.title);
                        $('#nickname').html(data.nickname);
                        $('#InsertTime').html(data.insertTime);

                        $('#GreatTime').html(data.greatTime);
                        $('#MarkName').html(data.markName);
                        $('#AdoptAppraise').html(data.adoptAppraise);
                    }
                } else {
                    layer.msg("数据加载失败");
                }
            });

        });

    </script>
</body>
</html>